<script setup>
import { onMounted, ref } from 'vue'

const money = ref(100)
onMounted(() => {
    money.value = 1000
    console.log('111')
})

const count = ref(0)
onMounted(() => {
    count.value++
    console.log('222')
})

</script>

<template>
    <div>
        <div>{{ money }}</div>
        <div>{{ count }}</div>
    </div>
</template>

<style scoped></style>